<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content" class="sitesetting">
<form id="form" action="{url('Site','SaveReturn')}" method="post">
<h3 class="title">返利设置</h3>
<table class="admin-table">
	<tr>
	<td width="100">注册佣金</td>
	<td>
	<input name="reg_money" id="reg_money" type="text" value="{$this->data['info']['reg_money']}" />
	<span etype='error_info' class="error_info" id="reg_money_info">用户注册成功后将获得的佣金</span>
	</td>
	</tr>
	<tr>
	<td>返利比率</td>
	<td>
	<input name="rate" id="rate" type="text" value="{$this->data['info']['rate']}" />
	<span etype='error_info' class="error_info" id="rate_info">设置为0则为不开启返利功能，例：如果要返利50%给用户，则填写50，仅对更改之后完成的交易有效</span>
	</td>
	</tr>
	<tr>
	<td>提现下限</td>
	<td>
	<input name="return_min" id="return_min" type="text" value="{$this->data['info']['return_min']}" />
	<span etype='error_info' class="error_info" id="return_min_info">每次提现金额必须大于等于设置的金额</span>
	</td>
	</tr>
	<tr><td colspan="2"><input id="btnSave" type="submit" value="保存" /></td></tr>
</table>
</form>
</div>